﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Pages_Store_WishListDetails : System.Web.UI.Page
{
    StoreApplicationService sas = new StoreApplicationService();
    protected void Page_Load(object sender, EventArgs e)
    {
        int wlID = Convert.ToInt32(Page.RouteData.Values["id"] as string);
        var wldetails = sas.GetWishlistDetails(wlID);
        if (wldetails.Count > 0)
        {
            WishListRepeter.DataSource = wldetails;
            WishListRepeter.DataBind();
        }
        else
        {
            Msg.Text = "Nu sa gasit nici un produs in acest wishlist";
        }
    }
    
}